from fastapi import APIRouter, Depends, Request, Form
from ..extensions.dependencies import get_query_token2

from ..schemas.demo import User

router = APIRouter()
#router = APIRouter(dependencies=[Depends(get_query_token2)],)

@router.post("/login/")
async def login(username: str = Form(), password: str = Form()):
    print('user: %s, pass: %s' % (username, password))
    return {"username": username, "msg": "login success"}

